%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Long Lined Cover Letter
% LaTeX Template
% Version 1.0 (1/6/13)
%
% This template has been downloaded from:
% http://www.LaTeXTemplates.com
%
% Original author:
% Matthew J. Miller
% http://www.matthewjmiller.net/howtos/customized-cover-letter-scripts/
%
% License:
% CC BY-NC-SA 3.0 (http://creativecommons.org/licenses/by-nc-sa/3.0/)
%
% xzl: Rice logo is from  http://ricebeamer.dynaman.net/


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%----------------------------------------------------------------------------------------
%	PACKAGES AND OTHER DOCUMENT CONFIGURATIONS
%----------------------------------------------------------------------------------------

\documentclass[12pt,stdletter,dateno,sigleft]{newlfm} % Extra options: 'sigleft' for a left-aligned signature, 'stdletternofrom' to remove the from address, 'letterpaper' for US letter paper - consult the newlfm class manual for more options

\usepackage{charter} % Use the Charter font for the document text
%\usepackage{times}
  
\newsavebox{\Luiuc}\sbox{\Luiuc}{\parbox[b]{1.75in}{\vspace{0.4in}
\includegraphics[width=1\linewidth]{RiceLogoTrans.pdf}}} % Company/institution logo at the top left of the page
\makeletterhead{Uiuc}{\Lheader{\usebox{\Luiuc}}}

%\newlfmP{sigsize=20pt} % Slightly decrease the height of the signature field
\newlfmP{sigsize=0pt} % Slightly decrease the height of the signature field

%\newlfmP{addrfromskipbefore=-25pt}   % xzl 

%\newlfmP{addrfromskipafter=5pt}   % xzl
%\newlfmP{sigskipafter=-5pt}   % xzl

\newlfmP{addrfromphone} % Print a phone number under the sender's address
\newlfmP{addrfromemail} % Print an email address under the sender's address
\PhrPhone{Phone} % Customize the "Telephone" text
\PhrEmail{Email} % Customize the "E-mail" text

\lthUiuc % Print the company/institution logo

%%%%%%%%%%%%%%%%%%%%%%%%
%	User-defined Macros
%%%%%%%%%%%%%%%%%%%%%%%%
%%% conference name
%\newcommand{\confname}[1]{\emph{#1}}
\newcommand{\confname}[1]{#1}

%%% research system name
\newcommand{\sysname}[1]{\textsc{#1}}
%\newcommand{\sysname}[1]{#1}

\usepackage{color,soul}
\newcommand\note[1]{\sethlcolor{yellow} \hl{[#1]}}
%\newcommand\note[1]{}
\newcommand\noted[1]{\sethlcolor{lightgray} \hl{[#1]}}
%\newcommand\noted[1]{}

% used by external script to generate multiple output letters
\input \jobname.tex

%----------------------------------------------------------------------------------------
%	YOUR NAME AND CONTACT INFORMATION
%----------------------------------------------------------------------------------------

\namefrom{John Smith} % Name

\addrfrom{
\today\\[12pt] % Date
6100 Main St \\ % Address
Houston, TX 77005
}

\phonefrom{(713) 348-0000} % Phone number

\emailfrom{\texttt{john.smith@rice.edu}} % Email address

%----------------------------------------------------------------------------------------
%	ADDRESSEE AND GREETING/CLOSING
%----------------------------------------------------------------------------------------

\greetto{Dear Members of the Search Committee,}

\closeline{Sincerely,}

% PDF will work fine 
\signature{
\fromsig{\includegraphics[scale=3]{sig.png}}
}

%----------------------------------------------------------------------------------------

\begin{document}
\begin{newlfm}

%----------------------------------------------------------------------------------------
%	LETTER CONTENT
%----------------------------------------------------------------------------------------

% references:
% tailor letter:
% http://theprofessorisin.com/2011/08/09/how-to-tailor-a-job-letter-without-flattering-pandering-or-begging/
% why your letter sucks
% http://theprofessorisin.com/2013/05/17/why-your-job-cover-letter-sucks/

% % % % % % % % % % % %
% self intro
% % % % % % % % % % % %
I am writing to apply for 
the advertised tenure-track faculty position \ifdefined\positionid\positionid{}\fi in your department.  
I am currently a Ph.D. candidate in Computer Science at Rice University, working with \note{advisor}. I expect to complete my dissertation by \note{month, year}.

% % % % % % % % % % % %
% past work
% % % % % % % % % % % %
My research interests focus on \note{AAA}\ifdefined\afterinterest\afterinterest{}\fi;
my background broadly spans the areas of \note{AAA, BBB, CCC}.
My thesis work addresses \note{XXX, YYY, ZZZ}. The work have been published at the \confname{XYZ conf}.

% % % % % % % % % % % %
% future work
% % % % % % % % % % % %
Looking ahead,
I will continue to investigate \note{AAA}.
% generic collaboration description
\ifdefined\genericcollaboration\genericcollaboration{}\fi

% detailed collaboration description in a separate paragraph
\collaboration{}

% % % % % % % % % % % %
% teaching
% % % % % % % % % % % %
I am confident of making a solid contribution to the teaching and curriculum of \univer{}.

% % % % % % % % % % % %
% closing
% % % % % % % % % % % %
My application materials, including curriculum vitae, research statement, and teaching statement are enclosed. All my application materials are available from: 
\begin{center}
\texttt{http://example.org}
\end{center}

I look forward to hearing from you soon. Thank you. 

%Sincerely, \\
%\\
%Felix Xiaozhu Lin
%\includegraphics[scale=1]{signature-small.pdf}

\end{newlfm}
\end{document}

